package com.t.bricks.bussiness.db.entity.customerreceiptoption;

import io.swagger.annotations.ApiModelProperty;

import com.t.bricks.bussiness.db.entity.customerreceiptoption.base.CustomerReceiptOptionBase;

/**
 * 顾客发票选项'CustomerReceiptOption'表扩展实体类
 * 注意:可根据需要创建不同的多个扩展实体类,而不是把所有的扩展属性都集中到一个类中
 * @author HuangXinBian
 */
public class CustomerReceiptOption extends CustomerReceiptOptionBase {
	
	private static final long serialVersionUID = -1L;// 使用rmi时需修改
	
	/**
	 * 类型(枚举,1:普票;2:专票)
	 */
	@ApiModelProperty(value="类型(枚举,1:普票;2:专票)", example="")
	private String sTypeText;

	/**
	 * 取 类型(枚举,1:普票;2:专票)
	 * @return TypeText 类型(枚举,1:普票;2:专票)
	 */
	public String getsTypeText() {
		return this.sTypeText;
	}

	/**
	 * 设置 类型(枚举,1:普票;2:专票)
	 * @param sTypeText 类型(枚举,1:普票;2:专票)
	 */
	public void setsTypeText(String sTypeText) {
		this.sTypeText = sTypeText;
	}

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return CustomerReceiptOption
	 */
	public static CustomerReceiptOption copy(CustomerReceiptOption source) {
		if (null == source) {
			return null;
		}
		
		CustomerReceiptOption target = new CustomerReceiptOption();
		target.setuId(source.getuId());
		target.setsCustomerId(source.getsCustomerId());
		target.setsName(source.getsName());
		target.setsPerson(source.getsPerson());
		target.setsAddress(source.getsAddress());
		target.setsPhone(source.getsPhone());
		target.setsBankAddress(source.getsBankAddress());
		target.setsBankNo(source.getsBankNo());
		target.setiType(source.getiType());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());
		target.setsTypeText(source.getsTypeText());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return CustomerReceiptOption
	 */
	@Override
	public CustomerReceiptOption clone() {
		return copy(this);
	}
	
}
